import { defineStore } from 'pinia'
export const useSumsStore = defineStore('sums', {
    //同时支持选项和组合式开发
    //1. state => 相当于data
    state(){
        return {
            sum:10
        }
    }
    //2. actions => 相当于methods

    //3. getter => 相当于computed
    
})